#define  _CRT_SECURE_NO_WARNINGS


#include<stdio.h>
#include<string.h>
#include<math.h>


int fun(int n)
{
	int i = 0;
	for (i = 2; i <= sqrt(n); i++)
	{
		if (n % i == 0)
			return 0;
	}
	return 1;
}
int main()
{
	char arr[101] = { 0 }, temp[] = "abcdefghijklmnopqrstuvwxyz";
	scanf("%s", arr);
	int len = strlen(arr), i = 0, a[26] = { 0 }, max = 0, min = 0, flag = 1, j = 0, b[26] = { 0 };
	for (i = 0; i < len; i++)
	{
		a[arr[i] - 'a']++;

	}
	for (i = 0; i < 26; i++)
	{
		if (a[i] != 0)
			b[j++] = a[i];
	}
	for (i = 0; i < j; i++)
	{
		if (b[i] > b[max])
			max = i;
		else if (b[i] < b[min])
			min = i;
	}
	if (fun(b[max] - b[min]) == 1 && b[max] - b[min] != 1 && b[max] - b[min] != 0)
	{
		printf("Lucky Word\n");
		flag = 0;
	}
	else
		printf("No Answer\n");
	if (flag == 0)
		printf("%d\n", b[max] - b[min]);
	else
		printf("0\n");
	return 0;
}